Insert an LRM, to prevent -20 to come out as 20- in RTL locales. (#322571,
authorMatthias Clasen <mclasen@redhat.com>
Mon, 28 Nov 2005 16:00:26 +0000 (16:00 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Mon, 28 Nov 2005 16:00:26 +0000 (16:00 +0000)
2005-11-28  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtkscale.c (_gtk_scale_format_value): Insert an LRM, to prevent
-20 to come out as 20- in RTL locales.  (#322571, Tze'ela Hebron)

ChangeLog
ChangeLog.pre-2-10
gtk/gtkscale.c

index 1a705767dac0baf6752258b0f4b242aa4d946aa2..e59ec56a6fbe712d3a82a306ce45a69b766d326b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2005-11-28  Matthias Clasen  <mclasen@redhat.com>
 
+       * gtk/gtkscale.c (_gtk_scale_format_value): Insert an LRM, to prevent
+       -20 to come out as 20- in RTL locales.  (#322571, Tze'ela Hebron)
+
        * gtk/gtkaction.c (gtk_action_sync_button_stock_id) 
        (connect_proxy): Buttons use the label property for stock ids.  (#322565,
        Milosz Derezynski)
index 1a705767dac0baf6752258b0f4b242aa4d946aa2..e59ec56a6fbe712d3a82a306ce45a69b766d326b 100644 (file)
@@ -1,5 +1,8 @@
 2005-11-28  Matthias Clasen  <mclasen@redhat.com>
 
+       * gtk/gtkscale.c (_gtk_scale_format_value): Insert an LRM, to prevent
+       -20 to come out as 20- in RTL locales.  (#322571, Tze'ela Hebron)
+
        * gtk/gtkaction.c (gtk_action_sync_button_stock_id) 
        (connect_proxy): Buttons use the label property for stock ids.  (#322565,
        Milosz Derezynski)
index 85f745460bb2a41556d6548f0ccf949123b2cbe7..34979380797ef46d1e4fec2eb03f2102c59a85cf 100644 (file)
@@ -646,8 +646,8 @@ _gtk_scale_format_value (GtkScale *scale,
   if (fmt)
     return fmt;
   else
-    return g_strdup_printf ("%0.*f", scale->digits,
-                            value);
+    /* insert a LRM, to prevent -20 to come out as 20- in RTL locales */
+    return g_strdup_printf ("\342\200\216%0.*f", scale->digits, value);
 }
 
 static void